/**
 * @author LKQ
 * @date 2022/1/12 16:12
 * @description 暴力寻找 O(m * n)
 */
public class FormalSolution {
    public static void main(String[] args) {

    }
    public boolean searchMatrix(int[][] matrix, int target) {
        for (int[] row : matrix) {
            for (int element : row) {
                if (element == target) {
                    return true;
                }
            }
        }
        return false;
    }
}
